package grape.composite.rest.bus.vo;
import grape.base.service.area.api.IAreaService;
import grape.common.rest.vo.BaseIdVo;

import grape.common.service.trans.TransBy;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 公交线路表
 * </p>
 *
 * @author yangwei
 * @since 2020-09-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="公交线路数据响应对象")
public class BusVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编码，唯一")
    private String code;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "城市区域id")
    private String cityAreaId;

    @ApiModelProperty(value = "城市名称")
    @TransBy(type = IAreaService.trans_areaName,byFieldName = "cityAreaId")
    private String cityAreaName;

    @ApiModelProperty(value = "备注")
    private String remark;


}
